package com.mr.qa.dao.impl;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.mr.qa.bo.ShopArticleContribute;


public class ShopArticleContributeDAO extends BaseHibernateDAO {
	private static final Log log = LogFactory.getLog(ShopArticleContributeDAO.class);
	public void save(ShopArticleContribute transientInstance) 
    {
        try 
        {
            getSession().save(transientInstance);
        }
        catch(RuntimeException re) 
        {
            throw re;
        }
    }
	
	public void modify(ShopArticleContribute transientInstance) 
    {
        try 
        {
            getSession().update(transientInstance);
        }
        catch(RuntimeException re) 
        {
            throw re;
        }
    }

    
    public void delete(ShopArticleContribute persistentInstance) 
    {
        log.debug("deleting ShopArticleContribute instance");
        try 
        {
            getSession().delete(persistentInstance);
            log.debug("delete successful");
        }
        catch (RuntimeException re) 
        {
            log.error("delete failed", re);
            throw re;
        }
    }
}
